#include "ProcessThread.h"
#include <QDebug>

ProcessThread::ProcessThread(QObject *parent)
    : QThread{parent}
{}

ProcessThread::ProcessThread(const QString& program, const QStringList& arguments)
    : m_program(program), m_arguments(arguments) {

}

void ProcessThread::run() {
    if (!QProcess::startDetached(m_program, m_arguments)) {
        qWarning() << "Failed to start program:" << m_program;
    }
}
